
SRC = $(wildcard *.java)
OBJ = $(SRC:%.java=%.class)

default: $(OBJ)
	$(MAKE) -C edgefinder
	$(MAKE) -C sift
	$(MAKE) -C MMS_server
	#$(MAKE) -C Mobile_Client
	$(MAKE) -C Oscar_Mobile_Server

clean:
	$(MAKE) -C edgefinder clean
	$(MAKE) -C sift clean
	$(MAKE) -C MMS_server clean
	$(MAKE) -C phone_client clean
	$(MAKE) -C phone_client_server clean
	rm *.class

%.class: %.java
	$(JAVAC) $(JAVAFLAGS) $<
